package com.ruoyi.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.BdmOrderShipments;

import java.util.List;

/**
 * 订单发货Service接口
 * 
 * @author ruoyi
 * @date 2024-12-28
 */
public interface IBdmOrderShipmentsService  extends IService<BdmOrderShipments>
{
    /**
     * 查询订单发货
     * 
     * @param id 订单发货主键
     * @return 订单发货
     */
    public BdmOrderShipments selectBdmOrderShipmentsById(Long id);

    /**
     * 查询订单发货列表
     * 
     * @param bdmOrderShipments 订单发货
     * @return 订单发货集合
     */
    public List<BdmOrderShipments> selectBdmOrderShipmentsList(BdmOrderShipments bdmOrderShipments);

    /**
     * 新增订单发货
     * 
     * @param bdmOrderShipments 订单发货
     * @return 结果
     */
    public int insertBdmOrderShipments(BdmOrderShipments bdmOrderShipments);

    /**
     * 修改订单发货
     * 
     * @param bdmOrderShipments 订单发货
     * @return 结果
     */
    public int updateBdmOrderShipments(BdmOrderShipments bdmOrderShipments);

    /**
     * 批量删除订单发货
     * 
     * @param ids 需要删除的订单发货主键集合
     * @return 结果
     */
    public int deleteBdmOrderShipmentsByIds(Long[] ids);

    /**
     * 删除订单发货信息
     * 
     * @param id 订单发货主键
     * @return 结果
     */
    public int deleteBdmOrderShipmentsById(Long id);

    /**
     * 新增订单操作日志
     * @param orderId 订单号
     * @param message 日志
     * @param userId  用户id
     * @param userName 用户名称
     */

    public void saveBdmOrderShipments(List<BdmOrderShipments> bdmOrderShipments);

    List<BdmOrderShipments> selectBdmOrderShipmentsAfterSaleList(BdmOrderShipments bdmOrderShipments);
}
